﻿using Domain.Entities;
using FluentMigrator;
using FrameworkCore.Extensions;

namespace AiBLSmartEdu.Module.SmartBiological.API.Migrations;


[Migration(202410091023)]
public class BiologicalIssueAddColumn : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table(MigrationExpressions.GetTableName(typeof(BiologicalIssue)))
          .AddColumn(MigrationExpressions.ColumnNameFor<BiologicalIssue>(nameof(BiologicalIssue.Question))).AsString(int.MaxValue).Nullable().WithColumnDescription("询问的问题")
          .AddColumn(MigrationExpressions.ColumnNameFor<BiologicalIssue>(nameof(BiologicalIssue.Answer))).AsString(int.MaxValue).Nullable().WithColumnDescription("回复的内容");
    }
}